StupidBeauty
Read times:756Posted at:Wed Feb 27 00:23:38 2013
- no title specified

转载android 显示单选列表对话框 builder.setSingleChoiceItems

使用AlertDialog.Builder的setSingleChoiceItems方法可以做出带单选列表的对话框。

http://blubels.blog.163.com/blog/static/18425789720115163303395/

亮点:

AlertDialog.Builder builder = new AlertDialog.Builder( this );

builder.setTitle( "请选择省份" );

builder.setSingleChoiceItems( province , 0, buttonOnClick );

builder.setPositiveButton( "确定" , buttonOnClick );

builder.setNegativeButton( "取消" , buttonOnClick );

builder.show();

袁洁莹

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands